{% extends "layout.html" %}

{% block title %}CobraTech Console{% endblock %}
{% block body %}
    <div id="topnav">
      <p>Home | Login</p>
    </div>
    <div id="sidenav">
    </div>
    <div id="mainpane">
      <h1>CobraTech Tools Console</h1>
    
      <div id="machines">
	<h2>Machines</h2>
	{% if machine_list %}
	  <ul>
	  {% for machine in machine_list %}
	    <li>{{ machine.name }}</li>
	  {% endfor %}
	  </ul>
	{% else %}
	  <p>No machines configured yet. Would you like to configure a machine?</p>
	{% endif %}
      </div>
      <div id="tools">
	<h2>Machines</h2>
	{% if tool_list %}
	  <ul>
	  {% for tool in tool_list %}
	    <li>{{ tool.name }}</li>
	  {% endfor %}
	  </ul>
	{% else %}
	  <p>No private tools configured yet. Would you like to configure a tool?</p>
	  <h3>Public tools</h3>
	{% endif %}
      </div>
      <div id="preseeds">
	{% if preseed_list %}
	  <h2>Machines</h2>
	  <ul>
	  {% for preseed in preseed_list %}
	    <li>{{ preseed.name }}</li>
	  {% endfor %}
	  </ul>
	{% endif %}
      </div>
    </div>

{% endblock %}
